using System;
using System.Collections.Generic;
using System.Text;

namespace Cobalt75.GreyMatter
{
    [AttributeUsage(AttributeTargets.Field)]
    public sealed class GMRelationColumnAttribute : GMColumnBaseAttribute
    {
        public GMRelationColumnAttribute()
        {
            pIsDatabaseColumn = false;

        }
        string pParameterName = "";
        bool pIndexIsInRelation = true;
        bool pAllowDuplicates = false;
        public string ParameterName
        {
            get
            {
                return  pParameterName ;
            }
            set
            {
                pParameterName = value;
            }
        }
        public bool IndexIsInRelation
        {
            get
            {
                return pIndexIsInRelation ;
            }
            set
            {
                pIndexIsInRelation = value;
            }
        }
        public bool AllowDuplicates
        {
            get
            {
                return pAllowDuplicates ;
            }
            set
            {
                 pAllowDuplicates= value;
            }
        }
    }

}
